/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihle.designpatterns.model.behavioral.iterator;

/**
 *
 * @author user
 */
public class Item {
    String name;
    float price;
    
    public Item(String name,float price){
        this.name = name;
        this.price = price;
    }
    
    public String toString(){
        String b = String.format(" %s %f",name, price);
        return b;
    }
}
